package is2.minga.packetProcessor.formatValidator;

import org.json.JSONObject;

import is2.misc.pipeAndFilter.Filter;

public class FormatValidator implements Filter<String, String>
{
	public String filter(String in) throws Exception
	{
		try
		{
			
			JSONObject data = new JSONObject(in);
			data.getInt("numSeq");
			data.getInt("numSeqEnc");
			data.getString("datos");
			
			return in;
				
		} catch (Exception e) {
			throw (new Exception("format validator descartando mensaje"));
		}
				
		
	}
	
}
